package com.ittsang.service;

import com.ittsang.dto.LoginFormDTO;
import com.ittsang.dto.R;
import com.ittsang.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {

    List<User> getUserList();

    R sendCode(String phone, HttpSession session);

    R register(LoginFormDTO loginForm, HttpSession session);

    R passwordLogin(LoginFormDTO loginForm, HttpSession session);

    R codeLogin(LoginFormDTO loginForm, HttpSession session);

    R getUserInfo();

    R alterUserInfo(User user);

    R alterUserPhone(String phone, HttpServletRequest request);

    R alterUserPassword(String pwd, String npwd, HttpServletRequest request);

    R logout(HttpServletRequest request);

    R logoutClub();

    R getUserById(Integer userId);

    R managerLogin(LoginFormDTO loginForm);
}
